<header class="main-header">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <a style="font-size: 20px;" class="branding" href="/" title="雨情生活智小库"><img src="/static/img/logo123.png" height="51" alt="雨情生活智小库"></a>
            </div>
        </div>
    </div>
</header>
<nav class="main-navigation navbar navbar-default boxtop">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a style="font-size: 20px;" class="navbar-brand" href="/">雨情生活智小库</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse"> 
            <ul class="nav navbar-nav">
                <li style="line-height: 20px; font-size: 18px;" class="{if $menu == 'index'}active{/if}"><a href="/">
                    首页
                </a></li>
                <li style="line-height: 20px; font-size: 18px;" class="{if $menu == 'tuijianyuedu'}active{/if}"><a href="{:url('/cms/index/pages/id/2')}">
                    推荐阅读
                </a></li>
                <li style="line-height: 20px; font-size: 18px;" class="{if $menu == 'womendegushi'}active{/if}"><a href="{:url('/cms/index/pages/id/8')}">
                    我们的故事
                </a></li>
                <li style="line-height: 20px; font-size: 18px;" class="{if $menu == 'yuqingkafeiguan'}active{/if}"><a href="{:url('/cms/index/pages/id/7')}">
                    活动预告
                </a></li>
                <li style="line-height: 20px; font-size: 18px;" class="{if $menu == 'yuqingxinwen'}active{/if}"><a href="{:url('/cms/index/pages/id/5')}">
                    雨情心情
                </a></li>
                <li style="line-height: 20px; font-size: 18px;" class="{if $menu == 'guizhangzhidu'}active{/if}"><a href="{:url('/cms/index/pages/id/6')}">
                    规定与公告
                </a></li>
            </ul>
            <form action="{:url('pages')}" class="navbar-form navbar-right">
                <div class="form-group">
                    {php}if(!isset($keyword))$keyword='';{/php}
                    <input name="keyword" placeholder="请输入标题搜索" value="{$keyword}" class="form-control">
                </div>
                <button type="submit" class="btn">搜索</button>
            </form>
        </div>
    </div>
</nav>
